package main
import "fmt"
import "sort"

var barVal	= map[string]int {"alpha":34,"bravo":56,"charlie":23,
							"delta":87, "echo":56, "golf":34, "hotel":16,
							"juliet":65, "kili":43, "lima":98, "foxtrot":12,
							"indio":87}

func main(){
  fmt.Println("unsorted.")
  for k,v := range barVal{
	fmt.Printf("Key: %v, Value: %v / ", k, v)
  }
  println()
  keys	:= make([]string, len(barVal))
  i		:= 0
  for k,_ := range barVal{
	keys[i]		= k
	i++
  }
  sort.Strings(keys)
  fmt.Println()
  fmt.Println("Sorted.")
  for _, k := range keys{
	fmt.Printf("Key: %v, Value: %v / ", k, barVal[k])
  }
  println()
}
